package com.ad.backstage.model;

import com.ad.backstage.model.base.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家记录
 * </p>
 *
 * @author gdx
 * @since 2021-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Merchant对象", description="商家记录")
public class Merchant extends BaseModel implements Serializable {

private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "商家名称")
    private String name;

    @ApiModelProperty(value = "商家封面图片(一张), 显示于商家列表")
    private String coverIcon;

    @ApiModelProperty(value = "环境图片(多张用,隔开), 放商铺环境照片")
    private String envIcon;

    @ApiModelProperty(value = "公开信息图片(多张用,隔开), 放营业执照, 食品安全证件等")
    private String openIcon;

    @ApiModelProperty(value = "法人身份证正反面")
    private String identityIcon;

    @ApiModelProperty(value = "法人银行卡正反面")
    private String bankIcon;

    @ApiModelProperty(value = "封面图片宽")
    private Integer coverWidth;

    @ApiModelProperty(value = "封面图片高")
    private Integer coverHeight;

    @ApiModelProperty(value = "省份")
    private Integer province;

    @ApiModelProperty(value = "市")
    private Integer city;

    @ApiModelProperty(value = "区")
    private Integer district;

    private String address;

    private String latitude;

    private String longitude;

    @ApiModelProperty(value = "-1:普通用户;0:餐饮;1:酒店;2:景点;3:车服;4:加油;5:特产;6:超市;")
    private String type;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "对应wx_user uuid")
    private String uuid;

    @ApiModelProperty(value = "审核原因")
    private String examineReason;

    @ApiModelProperty(value = "审核状态(编制中 H，审核中 W，审核不同过 Y，审核通过 N)")
    private String examineStatus;

    @ApiModelProperty(value = "上架状态")
    private String active;

    private String description;

    @ApiModelProperty(value = "审核通过次数")
    private Integer examineTimes;

    @ApiModelProperty(value = "商家名称")
    private String exName;

    @ApiModelProperty(value = "商家封面图片(一张), 显示于商家列表")
    private String exCoverIcon;

    @ApiModelProperty(value = "环境图片(多张用,隔开), 放商铺环境照片")
    private String exEnvIcon;

    @ApiModelProperty(value = "公开信息图片(多张用,隔开), 放营业执照, 食品安全证件等")
    private String exOpenIcon;

    @ApiModelProperty(value = "法人身份证正反面")
    private String exIdentityIcon;

    @ApiModelProperty(value = "法人身份证正反面")
    private String exBankIcon;

    @ApiModelProperty(value = "省份")
    private Integer exProvince;

    @ApiModelProperty(value = "市")
    private Integer exCity;

    @ApiModelProperty(value = "区")
    private Integer exDistrict;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime exCreateTime;

    @ApiModelProperty(value = "创建人id")
    private Integer exCreateUserId;

    @ApiModelProperty(value = "创建人名称")
    private String exCreateUserName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime exUpdateTime;

    @ApiModelProperty(value = "更新人id")
    private Integer exUpdateUserId;

    @ApiModelProperty(value = "更新人名称")
    private String exUpdateUserName;

    private String exAddress;

    private String exLatitude;

    private String exLongitude;

    @ApiModelProperty(value = "-1:普通用户;0:餐饮;1:酒店;2:景点;3:车服;4:加油;5:特产;6:超市;")
    private String exType;

    @ApiModelProperty(value = "电话")
    private String exPhone;

    @ApiModelProperty(value = "对应wx_user uuid")
    private String exUuid;

    @ApiModelProperty(value = "审核原因")
    private String exExamineReason;

    @ApiModelProperty(value = "审核状态(编制中 H，审核中 W，审核不同过 Y，审核通过 N)")
    private String exExamineStatus;

    @ApiModelProperty(value = "上架状态")
    private String exActive;

    private String exDescription;

    @ApiModelProperty(value = "审核通过次数")
    private Integer exExamineTimes;

    private String town;

    private String exTown;


    @TableField(exist=false)
    private String provinceName;
    @TableField(exist=false)
    private String cityName;
    @TableField(exist=false)
    private String districtName;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long categoryId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long categorySubId;

}
